Skip to content

Conversation

kevinresol
Copy link

No description provided.

@kLabz
Copy link
Owner

kLabz commented Jan 29, 2020

I don't event use event classes from haxe-react x)
Should I update and pull https://github.com/kLabz/haxe-react-types/blob/master/src/react/types/event/SyntheticEvent.hx here?

@kevinresol
Copy link
Author

SyntheticEvent is also used in react native but no DOM stuff there

@kevinresol
Copy link
Author

I think both implementation are similar. But iirc at runtime SyntheticEvent is actually a "class" instead of a plain anon object. And I think both target and nativeEvent should be parametrized without constraints. Because in react-native I have encountered cases that target is always null/undefined and nativeEvent can be a plain object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants